package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.pojo.User;

import java.util.List;

public interface UserService {

    User findUserByUsername(String username);

    void add(User user, Integer[] roleIds);

    PageResult findPage(String queryString, Integer currentPage, Integer pageSize);

    User findById(Integer id);

    List<Integer> findRoleIdsByUserId(Integer userId);

    void edit(User user, Integer[] roleIds);

    void deleteUser(Integer id);

    List<User> findAll();

}
